/*******************************************************************************
 * Copyright (c) 2008 Sylvain Sicard.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License v2.1
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * 
 * Contributors:
 *     Sylvain Sicard - initial API and implementation
 ******************************************************************************/
package fr.jade.event;

public class EventFactory {

  public static Event newEvent(){
    return new SimpleEvent(new EventHeader(), new EventBody());
  }
  
  public static Event newEvent(EventTag et){
    Event e = newEvent();
    e.getEventHeader().add(et);
    return e;
  }
}
